home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / conf_files / httpd.conf next >
Encoding:
Text File  |  2005-02-15  |  37.1 KB  |  1,075 lines

  1. # IMPORTANT
  2. # ${path} is used to specify EasyPHP installation path
  3.  
  4. #
  5. # Based upon the NCSA server configuration files originally by Rob McCool.
  6. #
  7. # This is the main Apache server configuration file.  It contains the
  8. # configuration directives that give the server its instructions.
  9. # See <URL:http://www.apache.org/docs/> for detailed information about
  10. # the directives.
  11. #
  12. # Do NOT simply read the instructions in here without understanding
  13. # what they do.  They're here only as hints or reminders.  If you are unsure
  14. # consult the online docs. You have been warned.  
  15. #
  16. # After this file is processed, the server will look for and process
  17. # srm.conf and then access.conf
  18. # unless you have overridden these with ResourceConfig and/or
  19. # AccessConfig directives here.
  20. #
  21. # The configuration directives are grouped into three basic sections:
  22. #  1. Directives that control the operation of the Apache server process as a
  23. #     whole (the 'global environment').
  24. #  2. Directives that define the parameters of the 'main' or 'default' server,
  25. #     which responds to requests that aren't handled by a virtual host.
  26. #     These directives also provide default values for the settings
  27. #     of all virtual hosts.
  28. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  29. #     different IP addresses or hostnames and have them handled by the
  30. #     same Apache server process.
  31. #
  32. # Configuration and logfile names: If the filenames you specify for many
  33. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  34. # server will use that explicit path.  If the filenames do *not* begin
  35. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  36. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  37. # server as "/usr/local/apache/logs/foo.log".
  38. #
  39. # NOTE: Where filenames are specified, you must use forward slashes
  40. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  41. # If a drive letter is omitted, the drive on which Apache.exe is located
  42. # will be used by default.  It is recommended that you always supply
  43. # an explicit drive letter in absolute paths, however, to avoid
  44. # confusion.
  45. #
  46.  
  47. ### Section 1: Global Environment
  48. #
  49. # The directives in this section affect the overall operation of Apache,
  50. # such as the number of concurrent requests it can handle or where it
  51. # can find its configuration files.
  52. #
  53.  
  54. #
  55. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  56. # Unix platforms.
  57. #
  58. ServerType standalone
  59.  
  60. #
  61. # ServerRoot: The top of the directory tree under which the server's
  62. # configuration, error, and log files are kept.
  63. #
  64. ServerRoot "${path}/apache"
  65.  
  66. #
  67. # PidFile: The file in which the server should record its process
  68. # identification number when it starts.
  69. #
  70. PidFile logs/httpd.pid
  71.  
  72. #
  73. # ScoreBoardFile: File used to store internal server process information.
  74. # Not all architectures require this.  But if yours does (you'll know because
  75. # this file will be  created when you run Apache) then you *must* ensure that
  76. # no two invocations of Apache share the same scoreboard file.
  77. #
  78. ScoreBoardFile logs/apache_runtime_status
  79.  
  80. #
  81. # In the standard configuration, the server will process httpd.conf (this 
  82. # file, specified by the -f command line option), srm.conf, and access.conf 
  83. # in that order.  The latter two files are now distributed empty, as it is 
  84. # recommended that all directives be kept in a single file for simplicity.  
  85. # The commented-out values below are the built-in defaults.  You can have the 
  86. # server ignore these files altogether by using "/dev/null" (for Unix) or
  87. # "nul" (for Win32) for the arguments to the directives.
  88. #
  89. #ResourceConfig conf/srm.conf
  90. #AccessConfig conf/access.conf
  91.  
  92. #
  93. # Timeout: The number of seconds before receives and sends time out.
  94. #
  95. Timeout 300
  96.  
  97. #
  98. # KeepAlive: Whether or not to allow persistent connections (more than
  99. # one request per connection). Set to "Off" to deactivate.
  100. #
  101. KeepAlive On
  102.  
  103. #
  104. # MaxKeepAliveRequests: The maximum number of requests to allow
  105. # during a persistent connection. Set to 0 to allow an unlimited amount.
  106. # We recommend you leave this number high, for maximum performance.
  107. #
  108. MaxKeepAliveRequests 100
  109.  
  110. #
  111. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  112. # same client on the same connection.
  113. #
  114. KeepAliveTimeout 15
  115.  
  116. #
  117. # Apache on Win32 always creates one child process to handle requests.  If it
  118. # dies, another child process is created automatically.  Within the child
  119. # process multiple threads handle incoming requests.  The next two
  120. # directives control the behaviour of the threads and processes.
  121. #
  122.  
  123. #
  124. # MaxRequestsPerChild: the number of requests each child process is
  125. # allowed to process before the child dies.  The child will exit so
  126. # as to avoid problems after prolonged use when Apache (and maybe the
  127. # libraries it uses) leak memory or other resources.  On most systems, this
  128. # isn't really needed, but a few (such as Solaris) do have notable leaks
  129. # in the libraries.  For Win32, set this value to zero (unlimited)
  130. # unless advised otherwise.
  131. #
  132. # NOTE: This value does not include keepalive requests after the initial
  133. #       request per connection. For example, if a child process handles
  134. #       an initial request and 10 subsequent "keptalive" requests, it
  135. #       would only count as 1 request towards this limit.
  136. #
  137. MaxRequestsPerChild 0
  138.  
  139. #
  140. # Number of concurrent threads (i.e., requests) the server will allow.
  141. # Set this value according to the responsiveness of the server (more
  142. # requests active at once means they're all handled more slowly) and
  143. # the amount of system resources you'll allow the server to consume.
  144. #
  145. ThreadsPerChild 50
  146.  
  147. #
  148. # Listen: Allows you to bind Apache to specific IP addresses and/or
  149. # ports, in addition to the default. See also the <VirtualHost>
  150. # directive.
  151. #
  152. #Listen 3000
  153. #Listen 12.34.56.78:80
  154. Listen 127.0.0.1:80
  155.  
  156. #
  157. # BindAddress: You can support virtual hosts with this option. This directive
  158. # is used to tell the server which IP address to listen to. It can either
  159. # contain "*", an IP address, or a fully qualified Internet domain name.
  160. # See also the <VirtualHost> and Listen directives.
  161. #
  162. #BindAddress *
  163.  
  164. #
  165. # Dynamic Shared Object (DSO) Support
  166. #
  167. # To be able to use the functionality of a module which was built as a DSO you
  168. # have to place corresponding `LoadModule' lines at this location so the
  169. # directives contained in it are actually available _before_ they are used.
  170. # Please read the file README.DSO in the Apache 1.3 distribution for more
  171. # details about the DSO mechanism and run `apache -l' for the list of already
  172. # built-in (statically linked and thus always available) modules in your Apache
  173. # binary.
  174. #
  175. # Note: The order in which modules are loaded is important.  Don't change
  176. # the order below without expert advice.
  177. #
  178. # Example:
  179. # LoadModule foo_module modules/mod_foo.so
  180. #
  181. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
  182. #LoadModule mime_magic_module modules/mod_mime_magic.so
  183. #LoadModule status_module modules/mod_status.so
  184. #LoadModule info_module modules/mod_info.so
  185. #LoadModule speling_module modules/mod_speling.so
  186. #LoadModule rewrite_module modules/mod_rewrite.so
  187. LoadModule anon_auth_module modules/mod_auth_anon.so
  188. #LoadModule dbm_auth_module modules/mod_auth_dbm.so
  189. #LoadModule digest_auth_module modules/mod_auth_digest.so
  190. #LoadModule digest_module modules/mod_digest.so
  191. #LoadModule proxy_module modules/mod_proxy.so
  192. #LoadModule cern_meta_module modules/mod_cern_meta.so
  193. #LoadModule expires_module modules/mod_expires.so
  194. #LoadModule headers_module modules/mod_headers.so
  195. #LoadModule usertrack_module modules/mod_usertrack.so
  196. #LoadModule unique_id_module modules/mod_unique_id.so
  197.  
  198. LoadModule php4_module "${path}/php/php4apache.dll"
  199.  
  200. #
  201. #  Reconstruction of the complete module list from all available modules
  202. #  (static and shared ones) to achieve correct module execution order.
  203. #
  204. # The modules listed below, without a corresponding LoadModule directive,
  205. # are static bound into the standard Apache binary distribution for Windows.
  206. #
  207. # Note: The order in which modules are loaded is important.  Don't change
  208. # the order below without expert advice.
  209. #
  210. # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
  211. ClearModuleList
  212. #AddModule mod_vhost_alias.c
  213. AddModule mod_env.c
  214. AddModule mod_log_config.c
  215. #AddModule mod_mime_magic.c
  216. AddModule mod_mime.c
  217. AddModule mod_negotiation.c
  218. #AddModule mod_status.c
  219. #AddModule mod_info.c
  220. AddModule mod_include.c
  221. AddModule mod_autoindex.c
  222. AddModule mod_dir.c
  223. AddModule mod_isapi.c
  224. AddModule mod_cgi.c
  225. AddModule mod_asis.c
  226. AddModule mod_imap.c
  227. AddModule mod_actions.c
  228. #AddModule mod_speling.c
  229. AddModule mod_userdir.c
  230. AddModule mod_alias.c
  231. #AddModule mod_rewrite.c
  232. AddModule mod_access.c
  233. AddModule mod_auth.c
  234. AddModule mod_auth_anon.c
  235. #AddModule mod_auth_dbm.c
  236. #AddModule mod_auth_digest.c
  237. #AddModule mod_digest.c
  238. #AddModule mod_proxy.c
  239. #AddModule mod_cern_meta.c
  240. #AddModule mod_expires.c
  241. #AddModule mod_headers.c
  242. #AddModule mod_usertrack.c
  243. #AddModule mod_unique_id.c
  244. AddModule mod_so.c
  245. AddModule mod_setenvif.c
  246. AddModule mod_php4.c
  247.  
  248. #
  249. # ExtendedStatus controls whether Apache will generate "full" status
  250. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  251. # Off) when the "server-status" handler is called. The default is Off.
  252. #
  253. #ExtendedStatus On
  254.  
  255. ### Section 2: 'Main' server configuration
  256. #
  257. # The directives in this section set up the values used by the 'main'
  258. # server, which responds to any requests that aren't handled by a
  259. # <VirtualHost> definition.  These values also provide defaults for
  260. # any <VirtualHost> containers you may define later in the file.
  261. #
  262. # All of these directives may appear inside <VirtualHost> containers,
  263. # in which case these default settings will be overridden for the
  264. # virtual host being defined.
  265. #
  266.  
  267. #
  268. # Port: The port to which the standalone server listens.  Certain firewall
  269. # products must be configured before Apache can listen to a specific port.
  270. # Other running httpd servers will also interfere with this port.  Disable
  271. # all firewall, security, and other services if you encounter problems.
  272. # To help diagnose problems use the Windows NT command NETSTAT -a
  273. #
  274. Port 80
  275.  
  276. #
  277. # ServerAdmin: Your address, where problems with the server should be
  278. # e-mailed.  This address appears on some server-generated pages, such
  279. # as error documents.
  280. #
  281. ServerAdmin admin@localhost
  282.  
  283. #
  284. # ServerName allows you to set a host name which is sent back to clients for
  285. # your server if it's different than the one the program would get (i.e., use
  286. # "www" instead of the host's real name).
  287. #
  288. # Note: You cannot just invent host names and hope they work. The name you 
  289. # define here must be a valid DNS name for your host. If you don't understand
  290. # this, ask your network administrator.
  291. # If your host doesn't have a registered DNS name, enter its IP address here.
  292. # You will have to access it by its address (e.g., http://123.45.67.89/)
  293. # anyway, and this will make redirections work in a sensible way.
  294. #
  295. # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  296. # machine always knows itself by this address. If you use Apache strictly for 
  297. # local testing and development, you may use 127.0.0.1 as the server name.
  298. #
  299. ServerName localhost
  300.  
  301.  
  302. #
  303. # DocumentRoot: The directory out of which you will serve your
  304. # documents. By default, all requests are taken from this directory, but
  305. # symbolic links and aliases may be used to point to other locations.
  306. #
  307. DocumentRoot "${path}/www"
  308.  
  309. #
  310. # Each directory to which Apache has access, can be configured with respect
  311. # to which services and features are allowed and/or disabled in that
  312. # directory (and its subdirectories). 
  313. #
  314. # First, we configure the "default" to be a very restrictive set of 
  315. # permissions.  
  316. #
  317. <Directory />
  318.     Options FollowSymLinks Indexes
  319.     AllowOverride All
  320. </Directory>
  321.  
  322. #
  323. # Note that from this point forward you must specifically allow
  324. # particular features to be enabled - so if something's not working as
  325. # you might expect, make sure that you have specifically enabled it
  326. # below.
  327. #
  328.  
  329. #
  330. # This should be changed to whatever you set DocumentRoot to.
  331. #
  332. <Directory "${path}/www">
  333.  
  334. #
  335. # This may also be "None", "All", or any combination of "Indexes",
  336. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  337. #
  338. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  339. # doesn't give it to you.
  340. #
  341.     Options Indexes FollowSymLinks Includes
  342.  
  343. #
  344. # This controls which options the .htaccess files in directories can
  345. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  346. # "AuthConfig", and "Limit"
  347. #
  348.     AllowOverride All
  349.  
  350. #
  351. # Controls who can get stuff from this server.
  352. #
  353.     Order allow,deny
  354.     Allow from all
  355. </Directory>
  356.  
  357. #
  358. # UserDir: The name of the directory which is appended onto a user's home
  359. # directory if a ~user request is received.
  360. #
  361. # Under Win32, we do not currently try to determine the home directory of
  362. # a Windows login, so a format such as that below needs to be used.  See
  363. # the UserDir documentation for details.
  364. #
  365. <IfModule mod_userdir.c>
  366.     UserDir "${path}/apache/users/"
  367. </IfModule>
  368.  
  369. #
  370. # Control access to UserDir directories.  The following is an example
  371. # for a site where these directories are restricted to read-only.
  372. #
  373. #<Directory "${path}/apache/users">
  374. #    AllowOverride FileInfo AuthConfig Limit
  375. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  376. #    <Limit GET POST OPTIONS PROPFIND>
  377. #        Order allow,deny
  378. #        Allow from all
  379. #    </Limit>
  380. #    <LimitExcept GET POST OPTIONS PROPFIND>
  381. #        Order deny,allow
  382. #        Deny from all
  383. #    </LimitExcept>
  384. #</Directory>
  385.  
  386. #
  387. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  388. # directory index.  Separate multiple entries with spaces.
  389. #
  390. <IfModule mod_dir.c>
  391.     DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4
  392. </IfModule>
  393.  
  394. #
  395. # AccessFileName: The name of the file to look for in each directory
  396. # for access control information.
  397. #
  398. AccessFileName .htaccess
  399.  
  400. #
  401. # The following lines prevent .htaccess files from being viewed by
  402. # Web clients.  Since .htaccess files often contain authorization
  403. # information, access is disallowed for security reasons.  Comment
  404. # these lines out if you want Web visitors to see the contents of
  405. # .htaccess files.  If you change the AccessFileName directive above,
  406. # be sure to make the corresponding changes here.
  407. #
  408. # Also, folks tend to use names such as .htpasswd for password
  409. # files, so this will protect those as well.
  410. #
  411. <Files ~ "^\.ht">
  412.     Order allow,deny
  413.     Deny from all
  414.     Satisfy All
  415. </Files>
  416.  
  417. #
  418. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  419. # document that was negotiated on the basis of content. This asks proxy
  420. # servers not to cache the document. Uncommenting the following line disables
  421. # this behavior, and proxies will be allowed to cache the documents.
  422. #
  423. #CacheNegotiatedDocs
  424.  
  425. #
  426. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  427. # Apache needs to construct a self-referencing URL (a URL that refers back
  428. # to the server the response is coming from) it will use ServerName and
  429. # Port to form a "canonical" name.  With this setting off, Apache will
  430. # use the hostname:port that the client supplied, when possible.  This
  431. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  432. #
  433. UseCanonicalName Off
  434.  
  435. #
  436. # TypesConfig describes where the mime.types file (or equivalent) is
  437. # to be found.
  438. #
  439. <IfModule mod_mime.c>
  440.     TypesConfig conf/mime.types
  441. </IfModule>
  442.  
  443. #
  444. # DefaultType is the default MIME type the server will use for a document
  445. # if it cannot otherwise determine one, such as from filename extensions.
  446. # If your server contains mostly text or HTML documents, "text/plain" is
  447. # a good value.  If most of your content is binary, such as applications
  448. # or images, you may want to use "application/octet-stream" instead to
  449. # keep browsers from trying to display binary files as though they are
  450. # text.
  451. #
  452. DefaultType text/plain
  453.  
  454. #
  455. # The mod_mime_magic module allows the server to use various hints from the
  456. # contents of the file itself to determine its type.  The MIMEMagicFile
  457. # directive tells the module where the hint definitions are located.
  458. # mod_mime_magic is not part of the default server (you have to add
  459. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  460. # Environment' section], or recompile the server and include mod_mime_magic
  461. # as part of the configuration), so it's enclosed in an <IfModule> container.
  462. # This means that the MIMEMagicFile directive will only be processed if the
  463. # module is part of the server.
  464. #
  465. <IfModule mod_mime_magic.c>
  466.     MIMEMagicFile conf/magic
  467. </IfModule>
  468.  
  469. #
  470. # HostnameLookups: Log the names of clients or just their IP addresses
  471. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  472. # The default is off because it'd be overall better for the net if people
  473. # had to knowingly turn this feature on, since enabling it means that
  474. # each client request will result in AT LEAST one lookup request to the
  475. # nameserver.
  476. #
  477. HostnameLookups Off
  478.  
  479. #
  480. # ErrorLog: The location of the error log file.
  481. # If you do not specify an ErrorLog directive within a <VirtualHost>
  482. # container, error messages relating to that virtual host will be
  483. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  484. # container, that host's errors will be logged there and not here.
  485. #
  486. ErrorLog logs/error.log
  487.  
  488. #
  489. # LogLevel: Control the number of messages logged to the error.log.
  490. # Possible values include: debug, info, notice, warn, error, crit,
  491. # alert, emerg.
  492. #
  493. LogLevel warn
  494.  
  495. #
  496. # The following directives define some format nicknames for use with
  497. # a CustomLog directive (see below).
  498. #
  499. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  500. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  501. LogFormat "%{Referer}i -> %U" referer
  502. LogFormat "%{User-agent}i" agent
  503.  
  504. #
  505. # The location and format of the access logfile (Common Logfile Format).
  506. # If you do not define any access logfiles within a <VirtualHost>
  507. # container, they will be logged here.  Contrariwise, if you *do*
  508. # define per-<VirtualHost> access logfiles, transactions will be
  509. # logged therein and *not* in this file.
  510. #
  511. CustomLog logs/access.log common
  512.  
  513. #
  514. # If you would like to have agent and referer logfiles, uncomment the
  515. # following directives.
  516. #
  517. #CustomLog logs/referer.log referer
  518. #CustomLog logs/agent.log agent
  519.  
  520. #
  521. # If you prefer a single logfile with access, agent, and referer information
  522. # (Combined Logfile Format) you can use the following directive.
  523. #
  524. #CustomLog logs/access.log combined
  525.  
  526. #
  527. # Optionally add a line containing the server version and virtual host
  528. # name to server-generated pages (error documents, FTP directory listings,
  529. # mod_status and mod_info output etc., but not CGI generated documents).
  530. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  531. # Set to one of:  On | Off | EMail
  532. #
  533. ServerSignature Email
  534.  
  535. # Apache parses all CGI scripts for the shebang line by default.
  536. # This comment line, the first line of the script, consists of the symbols
  537. # pound (#) and exclamation (!) followed by the path of the program that 
  538. # can execute this specific script.  For a perl script, with perl.exe in
  539. # the C:\Program Files\Perl directory, the shebang line should be:
  540.  
  541.    #!c:/program files/perl/perl
  542.  
  543. # Note you _must_not_ indent the actual shebang line, and it must be the
  544. # first line of the file.  Of course, CGI processing must be enabled by 
  545. # the appropriate ScriptAlias or Options ExecCGI directives for the files 
  546. # or directory in question.
  547. #
  548. # However, Apache on Windows allows either the Unix behavior above, or can
  549. # use the Registry to match files by extention.  The command to execute 
  550. # a file of this type is retrieved from the registry by the same method as 
  551. # the Windows Explorer would use to handle double-clicking on a file.
  552. # These script actions can be configured from the Windows Explorer View menu, 
  553. # 'Folder Options', and reviewing the 'File Types' tab.  Clicking the Edit
  554. # button allows you to modify the Actions, of which Apache 1.3 attempts to
  555. # perform the 'Open' Action, and failing that it will try the shebang line.
  556. # This behavior is subject to change in Apache release 2.0.
  557. #
  558. # Each mechanism has it's own specific security weaknesses, from the means
  559. # to run a program you didn't intend the website owner to invoke, and the
  560. # best method is a matter of great debate.
  561. #
  562. # To enable the this Windows specific behavior (and therefore -disable- the
  563. # equivilant Unix behavior), uncomment the following directive:
  564. #
  565. #ScriptInterpreterSource registry
  566. #
  567. # The directive above can be placed in individual <Directory> blocks or the
  568. # .htaccess file, with either the 'registry' (Windows behavior) or 'script' 
  569. # (Unix behavior) option, and will override this server default option.
  570. #
  571.  
  572. #
  573. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  574. # Alias fakename realname
  575. #
  576. <IfModule mod_alias.c>
  577.  
  578.     #
  579.     # Note that if you include a trailing / on fakename then the server will
  580.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  581.     # example, only "/icons/".  If the fakename is slash-terminated, then the 
  582.     # realname must also be slash terminated, and if the fakename omits the 
  583.     # trailing slash, the realname must also omit it.
  584.     #
  585.     Alias /icons/ "${path}/apache/icons/"
  586.  
  587.     <Directory "${path}/apache/icons">
  588.         Options Indexes MultiViews
  589.         AllowOverride None
  590.         Order allow,deny
  591.         Allow from all
  592.     </Directory>
  593.  
  594.  
  595.     Alias /images_easyphp/ "${path}/home/images_easyphp/"
  596.  
  597.     <Directory "${path}/home/images_easyphp">
  598.         Options Indexes MultiViews
  599.         AllowOverride None
  600.         Order allow,deny
  601.         Allow from all
  602.     </Directory>
  603.  
  604.  
  605.     Alias /mysql/ "${path}/phpmyadmin/"
  606.  
  607.     <Directory "${path}/phpmyadmin">
  608.         Options FollowSymLinks Indexes
  609.         AllowOverride None
  610.         Order deny,allow
  611.         allow from 127.0.0.1
  612.         deny from all
  613.     </Directory>
  614.  
  615.  
  616.     Alias /home/ "${path}/home/"
  617.  
  618.     <Directory "${path}/home">
  619.         Options FollowSymLinks Indexes
  620.         AllowOverride None
  621.         Order deny,allow
  622.         allow from 127.0.0.1
  623.         deny from all
  624.     </Directory>
  625.  
  626.  
  627.     # This Alias will project the on-line documentation tree under /manual/
  628.     # even if you change the DocumentRoot. Comment it if you don't want to 
  629.     # provide access to the on-line documentation.
  630.     #
  631.     #Alias /manual/ "${path}/apache/htdocs/manual/"
  632.  
  633.     #<Directory "${path}/apache/htdocs/manual">
  634.     #    Options Indexes FollowSymlinks MultiViews
  635.     #    AllowOverride None
  636.     #    Order allow,deny
  637.     #    Allow from all
  638.     #</Directory>
  639.  
  640.     #
  641.     # ScriptAlias: This controls which directories contain server scripts.
  642.     # ScriptAliases are essentially the same as Aliases, except that
  643.     # documents in the realname directory are treated as applications and
  644.     # run by the server when requested rather than as documents sent to the client.
  645.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  646.     # Alias.
  647.     #
  648.     ScriptAlias /cgi-bin/ "${path}/cgi-bin/"
  649.  
  650.     #
  651.     # "${path}/apache/cgi-bin" should be changed to whatever your ScriptAliased
  652.     # CGI directory exists, if you have that configured.
  653.     #
  654.     <Directory "${path}/cgi-bin">
  655.         AllowOverride None
  656.         Options None
  657.         Order allow,deny
  658.         Allow from all
  659.     </Directory>
  660.  
  661. </IfModule>
  662. # End of aliases.
  663.  
  664. #
  665. # Redirect allows you to tell clients about documents which used to exist in
  666. # your server's namespace, but do not anymore. This allows you to tell the
  667. # clients where to look for the relocated document.
  668. # Format: Redirect old-URI new-URL
  669. #
  670.  
  671. #
  672. # Directives controlling the display of server-generated directory listings.
  673. #
  674. <IfModule mod_autoindex.c>
  675.  
  676.     #
  677.     # FancyIndexing is whether you want fancy directory indexing or standard
  678.     #
  679.     # Note, add the option TrackModified to the IndexOptions default list only
  680.     # if all indexed directories reside on NTFS volumes.  The TrackModified flag
  681.     # will report the Last-Modified date to assist caches and proxies to properly
  682.     # track directory changes, but it does _not_ work on FAT volumes.
  683.     #
  684.     IndexOptions FancyIndexing
  685.  
  686.     #
  687.     # AddIcon* directives tell the server which icon to show for different
  688.     # files or filename extensions.  These are only displayed for
  689.     # FancyIndexed directories.
  690.     #
  691.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  692.  
  693.     AddIconByType (TXT,/icons/text.gif) text/*
  694.     AddIconByType (IMG,/icons/image2.gif) image/*
  695.     AddIconByType (SND,/icons/sound2.gif) audio/*
  696.     AddIconByType (VID,/icons/movie.gif) video/*
  697.  
  698.     AddIcon /icons/binary.gif .bin .exe
  699.     AddIcon /icons/binhex.gif .hqx
  700.     AddIcon /icons/tar.gif .tar
  701.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  702.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  703.     AddIcon /icons/a.gif .ps .ai .eps
  704.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  705.     AddIcon /icons/text.gif .txt
  706.     AddIcon /icons/c.gif .c
  707.     AddIcon /icons/p.gif .pl .py
  708.     AddIcon /icons/f.gif .for
  709.     AddIcon /icons/dvi.gif .dvi
  710.     AddIcon /icons/uuencoded.gif .uu
  711.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  712.     AddIcon /icons/tex.gif .tex
  713.     AddIcon /icons/bomb.gif core
  714.  
  715.     AddIcon /icons/back.gif ..
  716.     AddIcon /icons/hand.right.gif README
  717.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  718.     AddIcon /icons/blank.gif ^^BLANKICON^^
  719.  
  720.     #
  721.     # DefaultIcon is which icon to show for files which do not have an icon
  722.     # explicitly set.
  723.     #
  724.     DefaultIcon /icons/unknown.gif
  725.  
  726.     #
  727.     # AddDescription allows you to place a short description after a file in
  728.     # server-generated indexes.  These are only displayed for FancyIndexed
  729.     # directories.
  730.     # Format: AddDescription "description" filename
  731.     #
  732.     AddDescription "GZIP compressed document" .gz
  733.     AddDescription "tar archive" .tar
  734.     AddDescription "GZIP compressed tar archive" .tgz
  735.     AddDescription "ZIP archive" .zip
  736.     AddDescription "CAB archive" .cab
  737.     AddDescription "Win32 Executable" .exe
  738.  
  739.     #
  740.     # ReadmeName is the name of the README file the server will look for by
  741.     # default, and append to directory listings.
  742.     #
  743.     # HeaderName is the name of a file which should be prepended to
  744.     # directory indexes. 
  745.     #
  746.     # If MultiViews are amongst the Options in effect, the server will
  747.     # first look for name.html and include it if found.  If name.html
  748.     # doesn't exist, the server will then look for name.txt and include
  749.     # it as plaintext if found.
  750.     #
  751.     ReadmeName README
  752.     HeaderName HEADER
  753.  
  754.     #
  755.     # IndexIgnore is a set of filenames which directory indexing should ignore
  756.     # and not include in the listing.  Shell-style wildcarding is permitted.
  757.     #
  758.     IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  759.  
  760. </IfModule>
  761. # End of indexing directives.
  762.  
  763. #
  764. # Document types.
  765. #
  766. <IfModule mod_mime.c>
  767.  
  768.     #
  769.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  770.     # information on the fly. Note: Not all browsers support this.
  771.     # Despite the name similarity, the following Add* directives have nothing
  772.     # to do with the FancyIndexing customization directives above.
  773.     #
  774.     AddEncoding x-compress Z
  775.     AddEncoding x-gzip gz tgz
  776.     #
  777.     # AddLanguage allows you to specify the language of a document. You can
  778.     # then use content negotiation to give a browser a file in a language
  779.     # it can understand.
  780.     #
  781.     # Note 1: The suffix does not have to be the same as the language
  782.     # keyword --- those with documents in Polish (whose net-standard
  783.     # language code is pl) may wish to use "AddLanguage pl .po" to
  784.     # avoid the ambiguity with the common suffix for perl scripts.
  785.     #
  786.     # Note 2: The example entries below illustrate that in quite
  787.     # some cases the two character 'Language' abbreviation is not
  788.     # identical to the two character 'Country' code for its country,
  789.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  790.     #
  791.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  792.     # specifier. But there is 'work in progress' to fix this and get
  793.     # the reference data for rfc1766 cleaned up.
  794.     #
  795.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  796.     # French (fr) - German (de) - Greek-Modern (el)
  797.     # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
  798.     # Portugese (pt) - Luxembourgeois* (ltz)
  799.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  800.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  801.     # Russian (ru)
  802.     #
  803.     AddLanguage da .dk
  804.     AddLanguage nl .nl
  805.     AddLanguage en .en
  806.     AddLanguage et .ee
  807.     AddLanguage fr .fr
  808.     AddLanguage de .de
  809.     AddLanguage el .el
  810.     AddLanguage he .he
  811.     AddCharset ISO-8859-8 .iso8859-8
  812.     AddLanguage it .it
  813.     AddLanguage ja .ja
  814.     AddCharset ISO-2022-JP .jis
  815.     AddLanguage kr .kr
  816.     AddCharset ISO-2022-KR .iso-kr
  817.     AddLanguage nn .nn
  818.     AddLanguage no .no
  819.     AddLanguage pl .po
  820.     AddCharset ISO-8859-2 .iso-pl
  821.     AddLanguage pt .pt
  822.     AddLanguage pt-br .pt-br
  823.     AddLanguage ltz .lu
  824.     AddLanguage ca .ca
  825.     AddLanguage es .es
  826.     AddLanguage sv .sv
  827.     AddLanguage cz .cz
  828.     AddLanguage ru .ru
  829.     AddLanguage tw .tw
  830.     AddLanguage zh-tw .tw
  831.     AddCharset Big5         .Big5    .big5
  832.     AddCharset WINDOWS-1251 .cp-1251
  833.     AddCharset CP866        .cp866
  834.     AddCharset ISO-8859-5   .iso-ru
  835.     AddCharset KOI8-R       .koi8-r
  836.     AddCharset UCS-2        .ucs2
  837.     AddCharset UCS-4        .ucs4
  838.     AddCharset UTF-8        .utf8
  839.  
  840.     # LanguagePriority allows you to give precedence to some languages
  841.     # in case of a tie during content negotiation.
  842.     #
  843.     # Just list the languages in decreasing order of preference. We have
  844.     # more or less alphabetized them here. You probably want to change this.
  845.     #
  846.     <IfModule mod_negotiation.c>
  847.         LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
  848.     </IfModule>
  849.  
  850.     #
  851.     # AddType allows you to tweak mime.types without actually editing it, or to
  852.     # make certain files to be certain types.
  853.     #
  854.     AddType application/x-tar .tgz
  855.     AddType image/x-icon .ico
  856.     AddType application/vnd.wap.wmlc .wmlc
  857.     AddType application/x-httpd-php .phtml .pwml .php3 .php4 .php .php2 .inc
  858.     AddType text/vnd.wap.wml .wml
  859.     AddType text/vnd.wap.wmlscript .wmls
  860.     AddType text/vnd.wap.wmlscriptc .wmlsc
  861.     AddType image/vnd.wap.wbmp .wbmp
  862.  
  863.     #
  864.     # AddHandler allows you to map certain file extensions to "handlers",
  865.     # actions unrelated to filetype. These can be either built into the server
  866.     # or added with the Action command (see below)
  867.     #
  868.     # If you want to use server side includes, or CGI outside
  869.     # ScriptAliased directories, uncomment the following lines.
  870.     #
  871.     # To use CGI scripts:
  872.     #
  873.     AddHandler cgi-script .cgi
  874.  
  875.     #
  876.     # To use server-parsed HTML files
  877.     #
  878.     AddType text/html .shtml
  879.     AddHandler server-parsed .shtml
  880.  
  881.     #
  882.     # Uncomment the following line to enable Apache's send-asis HTTP file
  883.     # feature
  884.     #
  885.     #AddHandler send-as-is asis
  886.  
  887.     #
  888.     # If you wish to use server-parsed imagemap files, use
  889.     #
  890.     #AddHandler imap-file map
  891.  
  892.     #
  893.     # To enable type maps, you might want to use
  894.     #
  895.     #AddHandler type-map var
  896.  
  897. </IfModule>
  898. # End of document types.
  899.  
  900. #
  901. # Action lets you define media types that will execute a script whenever
  902. # a matching file is called. This eliminates the need for repeated URL
  903. # pathnames for oft-used CGI file processors.
  904. # Format: Action media/type /cgi-script/location
  905. # Format: Action handler-name /cgi-script/location
  906. #
  907.  
  908. #
  909. # MetaDir: specifies the name of the directory in which Apache can find
  910. # meta information files. These files contain additional HTTP headers
  911. # to include when sending the document
  912. #
  913. #MetaDir .web
  914.  
  915. #
  916. # MetaSuffix: specifies the file name suffix for the file containing the
  917. # meta information.
  918. #
  919. #MetaSuffix .meta
  920.  
  921. #
  922. # Customizable error response (Apache style)
  923. #  these come in three flavors
  924. #
  925. #    1) plain text
  926. #ErrorDocument 500 "The server made a boo boo.
  927. #  n.b.  the single leading (") marks it as text, it does not get output
  928. #
  929. #    2) local redirects
  930. #ErrorDocument 404 /missing.html
  931. #  to redirect to local URL /missing.html
  932. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  933. #  N.B.: You can redirect to a script or a document using server-side-includes.
  934. #
  935. #    3) external redirects
  936. #ErrorDocument 402 http://some.other-server.com/subscription_info.html
  937. #  N.B.: Many of the environment variables associated with the original
  938. #  request will *not* be available to such a script.
  939.  
  940. #
  941. # Customize behaviour based on the browser
  942. #
  943. <IfModule mod_setenvif.c>
  944.  
  945.     #
  946.     # The following directives modify normal HTTP response behavior.
  947.     # The first directive disables keepalive for Netscape 2.x and browsers that
  948.     # spoof it. There are known problems with these browser implementations.
  949.     # The second directive is for Microsoft Internet Explorer 4.0b2
  950.     # which has a broken HTTP/1.1 implementation and does not properly
  951.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  952.     #
  953.     BrowserMatch "Mozilla/2" nokeepalive
  954.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  955.  
  956.     #
  957.     # The following directive disables HTTP/1.1 responses to browsers which
  958.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  959.     # basic 1.1 response.
  960.     #
  961.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  962.     BrowserMatch "Java/1\.0" force-response-1.0
  963.     BrowserMatch "JDK/1\.0" force-response-1.0
  964.  
  965. </IfModule>
  966. # End of browser customization directives
  967.  
  968. #
  969. # Allow server status reports, with the URL of http://servername/server-status
  970. # Change the "localhost" to match your domain to enable.
  971. #
  972. #<Location /server-status>
  973. #    SetHandler server-status
  974. #    Order deny,allow
  975. #    Deny from all
  976. #    Allow from localhost
  977. #</Location>
  978.  
  979. #
  980. # Allow remote server configuration reports, with the URL of
  981. # http://servername/server-info (requires that mod_info.c be loaded).
  982. # Change the "localhost" to match your domain to enable.
  983. #
  984. #<Location /server-info>
  985. #    SetHandler server-info
  986. #    Order deny,allow
  987. #    Deny from all
  988. #    Allow from localhost
  989. #</Location>
  990.  
  991. #
  992. # There have been reports of people trying to abuse an old bug from pre-1.1
  993. # days.  This bug involved a CGI script distributed as a part of Apache.
  994. # By uncommenting these lines you can redirect these attacks to a logging 
  995. # script on phf.apache.org.  Or, you can record them yourself, using the script
  996. # support/phf_abuse_log.cgi.
  997. #
  998. #<Location /cgi-bin/phf*>
  999. #    Deny from all
  1000. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  1001. #</Location>
  1002.  
  1003. #
  1004. # Proxy Server directives. Uncomment the following lines to
  1005. # enable the proxy server:
  1006. #
  1007. #<IfModule mod_proxy.c>
  1008. #    ProxyRequests On
  1009.  
  1010. #    <Directory proxy:*>
  1011. #        Order deny,allow
  1012. #        Deny from all
  1013. #        Allow from localhost
  1014. #    </Directory>
  1015.  
  1016.     #
  1017.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  1018.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  1019.     # Set to one of: Off | On | Full | Block
  1020.     #
  1021. #    ProxyVia On
  1022.  
  1023.     #
  1024.     # To enable the cache as well, edit and uncomment the following lines:
  1025.     # (no cacheing without CacheRoot)
  1026.     #
  1027. #    CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
  1028. #    CacheSize 5
  1029. #    CacheGcInterval 4
  1030. #    CacheMaxExpire 24
  1031. #    CacheLastModifiedFactor 0.1
  1032. #    CacheDefaultExpire 1
  1033. #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
  1034.  
  1035. #</IfModule>
  1036. # End of proxy directives.
  1037.  
  1038. ### Section 3: Virtual Hosts
  1039. #
  1040. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  1041. # machine you can setup VirtualHost containers for them. Most configurations
  1042. # use only name-based virtual hosts so the server doesn't need to worry about
  1043. # IP addresses. This is indicated by the asterisks in the directives below.
  1044. #
  1045. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  1046. # for further details before you try to setup virtual hosts.
  1047. #
  1048. # You may use the command line option '-S' to verify your virtual host
  1049. # configuration.
  1050.  
  1051. #
  1052. # Use name-based virtual hosting.
  1053. #
  1054. #NameVirtualHost *
  1055.  
  1056. #
  1057. # VirtualHost example:
  1058. # Almost any Apache directive may go into a VirtualHost container.
  1059. # The first VirtualHost section is used for requests without a known
  1060. # server name.
  1061. #
  1062. #<VirtualHost *>
  1063. #    ServerAdmin webmaster@dummy-host.example.com
  1064. #    DocumentRoot /www/docs/dummy-host.example.com
  1065. #    ServerName dummy-host.example.com
  1066. #    ErrorLog logs/dummy-host.example.com-error_log
  1067. #    CustomLog logs/dummy-host.example.com-access_log common
  1068. #</VirtualHost>
  1069.  
  1070. #alias
  1071. #alias
  1072.  
  1073.  
  1074.